Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


AdjustMenus

The AdjustMenus method should prepare this part's menus for display.

void AdjustMenus (in ODFrame frame);
frame
A reference to a display frame whose menus should be displayed.
DISCUSSION
OpenDoc calls this method when this part has the menu focus or is the root part and there is a mouse-down event in the menu bar.

Your part's AdjustMenus method should perform any actions necessary to enable and disable menu items as appropriate to its current state. Your part's AdjustMenus method can use the ODMenuBar method to change the appearance of your menu items, or it can make platform-specific calls to directly enable, disable, mark, or change the text of your menu items.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrInvalidFrame
The specified frame is not a display frame of this part.
SEE ALSO
"The AdjustMenus Method" on page 85 in OpenDoc Cookbook
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Enabling Menus and Commands" on page 244 in OpenDoc Programmer's Guide.
"Acquiring and Relinquishing the Clipboard Focus" on page 352 in OpenDoc Programmer's Guide.
"Selection Info" on page 252 in OpenDoc Programmer's Guide.
"Editor Preferences" on page 255 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help